﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

using UncleBobWebService.ServiceRequester;
using UncleBobApplicantWebService.ApplicantWebService;


namespace UncleBobApplicantWebService.Controllers
{
    public class ErrorController : Controller
    {
        //----------------------------------------------
        //----------------------------------------------
        private UncleBobApplicantWebService.ApplicantWebService.WebServiceClient mApplicantClient = new UncleBobApplicantWebService.ApplicantWebService.WebServiceClient();


        //**************************************************
        //Display error view
        //**************************************************
        public ActionResult Error(string error)
        {
            ViewData["Error"] = Session[SessionKeys.ERROR];
            return View();
        }


        //**************************************************
        //Form action handle
        //**************************************************
        public ActionResult FormAction(FormCollection collection)
        {
            return RedirectToAction("Index", "Welcome");
        }
    }
}
